package help;


import deformation.Deformation;
import deformation.DeformationGenerator;
import deformation.DeformationGenerator.DeformationType;
import handler.Handler;

public class DeformationFactory {

	public final DeformationType deformationType;
	public final double alpha;
	public DeformationFactory(DeformationType deformationType, double alpha) {
		this.deformationType= deformationType;
		this.alpha = alpha;
	}
	
	
	public Deformation generate(Handler handler){
		return deformationType.generate(handler, alpha);
	}



	public String getName() {
		StringBuilder builder = new StringBuilder();
		builder.append(deformationType);
		builder.append(", ");
		builder.append(alpha);
		return builder.toString();
	}

}
